package com.meizi.mall.common.status;

import com.meizi.core.tool.status.IStatus;

/**
 * @author meizi
 * @email enjoymeizi@gmail.com
 * @date 2021/1/20 16:34
 */
public enum EsStatus implements IStatus {
    SAVE_ERROR(5000, "ES保存数据失败");

    private int code;
    private String msg;

    EsStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return  code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
